<template>
	<uni-nav-bar :attrs={...attrs} @clickLeft="back">
		<template #left>
			<slot name="left"></slot>
		</template>
		<template #default>
			<slot></slot>
		</template>
		<template #right>
			<slot name="right"></slot>
		</template>
	</uni-nav-bar>
</template>

<script setup>
	import {
		ref,
		defineProps,
		defineEmits,
		toRefs,
		useAttrs
	} from 'vue'
	const attrs = useAttrs()
	const back = () => {
		uni.navigateBack()
	}
</script>

<style lang="scss" scoped>
</style>